﻿<%@ Control Language="C#" EnableViewState="true" %>
<%@ Register Assembly="Antu.WebControls" Namespace="Antu.WebControls" TagPrefix="CBW" %>
<asp:Panel ID="panel1" runat="server">
<script type="text/javascript">
    function select_project(type) {
        var url = '../ZJManage/ZS_SelectProject.aspx?TYPE=' + type + "&rd=" + Math.random();
        var feature = "dialogWidth:" + 1000 + "px;dialogHeight:" + 450 + "px;scroll:yes;status:no;help:no;center:1";
        var project_info = window.showModalDialog(url, '', feature);
        if (project_info != undefined && project_info.length > 1) {
            
            document.getElementById('<%=项目名称.ClientID %>').value = project_info[2];
            document.getElementById('<%=征收时间.ClientID %>').value = project_info[3];
            document.getElementById('<%=征收地点.ClientID %>').value = project_info[4];
            document.getElementById('<%=征收许可证号.ClientID %>').value = project_info[5];
            document.getElementById('<%=txtPNID.ClientID %>').value = project_info[0];
        }
    }
    function checkNull() {
        var t1 = document.getElementById('<%=项目名称.ClientID %>').value;
        var t2=document.getElementById('<%=txt身份证号.ClientID %>').value;
        var t3=document.getElementById('<%=txt姓名.ClientID %>').value;
        var msg='';
        if(t1==null||t1==''){msg+=' 项目名称未选择 ';}
        if (t3 == null || t3 == '') { msg += ' 人员姓名未填写 '; }
       
        if (msg == null || msg == '')
        { return true; }
        else {
            alert(msg);
            return false;
         }
     }
     /*验证身份证*/
     function YZssz() {
         var t2 = document.getElementById('<%=txt身份证号.ClientID %>').value;
         alert(t2.length);

         if (t2.length == 15 || t2.length == 18) {
             return;
         }
         else {
             alert('身份证号必须是15或18位，请检查！');
             return;
         }
         
     }
    
    function OpenFileUpload(cqid,cid,pid) {
            window.open('../ZSManage/FileUpload1.aspx?usetype=5&pid='+pid+'&cid='+cid+'&cqid=' + cqid, '文件上传', 'height=600px,width=800px;toolbar =no,menubar=no, scrollbars=yes, resizable=no, location=no, status=yes');
        }
    function hidebutton(){
        document.getElementById("button1").style.display='none';
    }
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-image: url(<%= Antu.Core.Components.SiteSettings.DefaultSiteSettings.DefaultThemeFolderMapPath %>images/menuthb.png);
    margin-top: 1px">
    <tr>
        <td valign="middle" height="30">
            <font id="Font1" style="font-size: 14px; font-weight: bold; color: #3E7CC3; float: left;
                color: black; text-indent: 1em;" runat="server">上访信息编辑 </font>
        </td>
    </tr>
</table>
<table cellpadding="0" cellspacing="0" align="center" class="window_tab_list" style="width:100%; height:35px; margin:0px 0 10px 0;line-height:35px;text-align:center;">
            <tr>
                <th colspan="8" style="text-align: center; line-height: 20px;">
                    上访信息编辑
                </th>
            </tr>
            <tr style=" height:30px;">
                <td>姓名：</td><td><asp:TextBox ID="txt姓名" runat="server"></asp:TextBox></td>
                <td>性别：</td><td align="left">&nbsp;
                <asp:DropDownList ID="DropDownList1" runat="server">
                    <asp:ListItem Value="男" Text="男"></asp:ListItem>
                    <asp:ListItem Value="女" Text="男"></asp:ListItem>
                </asp:DropDownList>
                </td>
                <td>身份证号：</td><td colspan="3"><asp:TextBox ID="txt身份证号"  runat="server"></asp:TextBox></td>
            </tr>
            <tr style=" height:30px;">
                <td>住址：</td><td><asp:TextBox ID="txt住址" runat="server"></asp:TextBox></td>
                <td>电话：</td><td><asp:TextBox ID="txt电话" runat="server"></asp:TextBox></td>
                <td>单位：</td><td colspan="3"><asp:TextBox ID="txt单位" runat="server"></asp:TextBox></td>
            </tr>
            <tr style=" height:30px;">
                <td>信访时间：</td><td>
                <CBW:MPCalendar ID="txt信访时间" runat="server" />
                </td>
                <td>信访类别：</td><td align="left">&nbsp;
                    <asp:DropDownList ID="ddl信访类别" runat="server">
                    </asp:DropDownList>
                </td>
                <td>征收决定号：</td>
                <td  colspan="3">
                    <asp:TextBox ID="征收许可证号" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr style=" height:30px;">
                <td>项目名称：</td>
                <td>
                    <asp:TextBox ID="项目名称" runat="server" onfocus="this.blur()"></asp:TextBox>
                </td>
                <td>征收时间：</td><td><asp:TextBox ID="征收时间" runat="server" onfocus="this.blur()"></asp:TextBox></td>
                <td>征收地点：</td><td colspan="3"><asp:TextBox ID="征收地点" runat="server" onfocus="this.blur()"></asp:TextBox></td>
            </tr>
            <tr>
                <td>事发地点：</td>
                <td><asp:TextBox ID="txt事发地点" runat="server"></asp:TextBox></td>
                <td>是否认定无理上访：</td>
                <td align="left">&nbsp;
                    <asp:DropDownList ID="ddl认定无理上访" runat="server">
                        <asp:ListItem Text="" Value=""></asp:ListItem>
                        <asp:ListItem Text="否" Value="否"></asp:ListItem>
                        <asp:ListItem Text="是" Value="是"></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>是否三级终结：</td>
                <td align="left">&nbsp;
                    <asp:DropDownList ID="ddl三级终结" runat="server">
                        <asp:ListItem Text="" Value=""></asp:ListItem>
                        <asp:ListItem Text="否" Value="否"></asp:ListItem>
                        <asp:ListItem Text="是" Value="是"></asp:ListItem>
                    </asp:DropDownList></td>
                    
                    <td>区属：</td>
                    <td>
                    <asp:DropDownList runat="server" ID="ddl区属">                    
                    </asp:DropDownList>
                    </td>
            </tr>
            <tr style="height:30px;">
                <td rowspan="2">反映主要问题：（请求、事实、理由）</td>
                <td rowspan="2" colspan="7"><asp:TextBox ID="txt反映主要问题" runat="server" TextMode="MultiLine" Width="100%" Height="60px"></asp:TextBox></td>
            </tr>
            <tr style=" height:30px;"></tr>
            <tr style=" height:30px;">
                <td rowspan="3">接待处理情况</td>
                <td rowspan="2" colspan="7"><asp:TextBox ID="txt接待处理情况" runat="server" TextMode="MultiLine" Width="100%" Height="60px"></asp:TextBox></td>
            </tr>
            <tr style=" height:30px;">
            </tr>
            <tr style=" height:30px;">
                <td colspan="5"></td>                
                <td>接待员：</td>
                <td><asp:TextBox ID="txt接待员" runat="server"></asp:TextBox></td>
            </tr>
            <tr style=" height:30px;">
                <td>领导回复意见：</td>
                <td colspan="7"><asp:TextBox ID="txt领导回复意见" runat="server" Width="700"></asp:TextBox></td>
                
            </tr>
            <tr style=" height:30px;">
                <td rowspan="2">备注：</td>
                <td rowspan="2" colspan="7"><asp:TextBox ID="txt备注" runat="server" TextMode="MultiLine" Width="100%" Height="60px"></asp:TextBox></td>
            </tr>
            <tr style=" height:30px;">
            </tr>
            <tr style=" height:30px;">
                <td><asp:Button ID="btnUpload" runat="server" Text="附件查看" /></td>
                <td colspan="7">
                    
                    <input id="button1" type="button" value="项目选择" onclick="select_project('sfxx')" />&nbsp;
                    <asp:Button ID="btn_Insert" runat="server" Text="保存" OnClientClick="return checkNull();" />&nbsp;
                    <asp:Button ID="btnReturn" runat="server" Text="返回" />
                </td>
            </tr>
        </table>
        <div style="display:none;">
            <asp:TextBox ID="txtPNID" runat="server"></asp:TextBox>
            <asp:TextBox ID="txtID" runat="server"></asp:TextBox>
        </div>
            <CBW:MPPersistence  ID="Persistence1" runat="server"></CBW:MPPersistence>
</asp:Panel>